compile-time errors
When programs under development are compiled, the compiler sometimes finds text that is
not valid code. Typing mistakes and upper/lower case errors are most common.
When the compiler detects an error in the source program, it prints the line containing
the error, points at the position of the error on the line, and displays an error message
like syntax error or type mismatch.
The error pointer is not always accurate. Sometimes the compiler does not realize there is
an error until later on the line, and does not know where the error begins.
The general purpose compile-time error is syntax error, which means that something invalid
or unexpected was encountered on the source line. In many cases, the compiler gives more
helpful messages like type mismatch or overflow.
The compile-time error messages are listed and described in the following section.